package org.csmzxy.class2333;

public class Example05 {
    public static void main(String[] args) {
        String s = "Hello";
        char[] list = s.toCharArray();
        System.out.print(s + "转化为字符数组的结果为：");
        for (int i = 0; i < list.length; i++) {
            System.out.print(list[i]);
            if (i == list.length - 1) {
                System.out.println();
            } else {
                System.out.print(',');
            }
        }
        System.out.println("将int数据12转换为String类型数据的结果为：" + String.valueOf(12));
        System.out.println(s + "全部转换为大写的结果为：" + s.toUpperCase());
        System.out.println(s + "全部转换为小写的结果为：" + s.toLowerCase());

    }
}
